import java.util.Date;

import org.junit.Assert;
import org.junit.Test;


public class PersonTest {

	@Test
	public void testTryParse1() {
		Date d = Person.tryParse("2/13/1943");
		Assert.assertTrue(d.toString().equals("Sat Feb 13 00:00:00 EDT 1943"));
	}

	@Test
	public void testTryParse2() {
		Date d = Person.tryParse("3-3-1985");
		Assert.assertTrue(d.toString().equals("Sun Mar 03 00:00:00 EST 1985"));
	}

	@Test
	public void testTryParse3() {
		Date d = Person.tryParse("6-3-1975");
		Assert.assertTrue(d.toString().equals("Tue Jun 03 00:00:00 EDT 1975"));
	}
}
